package org.elepower.dao;

import org.apache.ibatis.annotations.Param;
import org.elepower.pojo.PsInspectorDetails;

import java.util.List;

public interface PsInspectorDetailsDao extends Common<PsInspectorDetails,Integer>{

    /**
     * 获取没有任务的巡检员
     * @return
     */
    public List<PsInspectorDetails> getNormal();


    /**
     * 更新巡检员巡检任务
     * @return
     * @throws Exception
     */
    public void updateInspectorTask(@Param("inspectors")Integer[] inspectors,@Param("taskId") Integer taskId) throws Exception;

    /**
     * 根据任务编号获取巡检员
     * @param taskId
     * @return
     */
    public List<PsInspectorDetails> getTaskId(Integer taskId);

    /**
     * 根据任务编号修改巡检员状态
     * @param taskId
     */
    public void updateInspectorTaskId(Integer taskId);
}
